package com.ruan.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.entity.Address;
import com.ruan.entity.R;
import com.ruan.requestdata.AddressRequestData;
import com.ruan.vo.AddressVo;

import java.util.List;

/**
* @author 59499
* @description 针对表【address】的数据库操作Service
* @createDate 2023-09-13 20:13:30
*/
public interface AddressService extends IService<Address> {

    R<Void> addAddress(AddressRequestData addressRequestData);

    R<List<AddressVo>> getAddressByUserId(String userId);

    R<Address> getAddressById(Integer id);

    R<Void> editAddress(AddressRequestData addressRequestData);

    R<Void> deleteAddress(Integer id,String userId);
}
